import Vue from 'vue'
import Router from 'vue-router'
import Home from './views/Home.vue'
import Login from './views/Login.vue'
import AudioDemo from './views/AudioDemo.vue'
Vue.use(Router)

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/home',
      name: 'home',
      meta: {
        requireAuth: true // 判断是否需要登录
      },
      component: Home
    }, {
      path: '/login',
      name: 'login',
      component: Login
    },
    {
      path: '/demo',
      name: 'demo',
      component: AudioDemo
    }
   
  ]
})
